package com.leyou.common.enums;

import lombok.Getter;

@Getter
public enum ExceptionEnum {
    PRICE_CANNOT_BE_NULL(400, "价格不能为空！"),
    DATA_TRANSFER_ERROR(500,"数据转换异常"),
    CATEGORY_NO_FOUND(204,"相应的分类信息不存在"),
    BRAND_NO_FOUND(204,"相应的品牌信息不存在"),
    INSERT_OPERATION_FAIL(500,"品牌数据保存失败"),
    INVALID_FILE_TYPE(500,"不受支持的文件内容" ),
    FILE_UPLOAD_ERROR(500,"文件上传错误" ),
    UPDATE_OPERATION_FAIL( 500,"更新失败" ),
    DELETE_BRAND_FAIL(500,"内容删除失败，请重试" ),
    SPECGROUP_NO_FOUND(204,"没找到相应的规格参数组信息" ),
    SPECPARAM_NOT_FOUND(204,"没有找到相应的规格参数信息"),
    GOODS_NOT_FOUND(204,"没有找到对应的商品信息" );
    private int status;
    private String message;

    ExceptionEnum(int status, String message) {
        this.status = status;
        this.message = message;
    }

}
